<?php

defined('IN') or die('bad request');
include_once( AVALID . 'app' . EXT_VALID );

class testValidator extends appValidator {

    function __construct() {
        parent::__construct();
    }

    function a() {
        $user = get('user');
        $pwd = get('pwd');
        if (empty($user) or empty($pwd)) {
            //ajax(array('code' => 0, 'msg' => 'user is required', 'data' => array($user, $pwd)));
            echo 'user is required';
            return FALSE;
            //exit;
        }
        return TRUE;
    }

}
